<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>残疾人服务平台</title>
    <!-- 引入Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入Font Awesome -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="styles/readAloud.css">
    <script src="js/readAloud.js"></script>

    <!-- 配置Tailwind -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36CFC9',
                        accent: '#FF7D00',
                        neutral: '#F5F7FA',
                        'neutral-dark': '#333F51',
                        'neutral-light': '#E5E6EB'
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    },
                    boxShadow: {
                        'card': '0 4px 12px rgba(0, 0, 0, 0.05)',
                        'card-hover': '0 8px 24px rgba(22, 93, 255, 0.15)',
                    }
                }
            }
        }
    </script>

    <!-- 自定义工具类 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .btn-primary {
                @apply bg-primary text-white px-4 py-2 rounded-lg shadow-sm hover:bg-primary/90 transition-all duration-300;
            }
            .btn-outline {
                @apply border border-primary text-primary px-4 py-2 rounded-lg hover:bg-primary/10 transition-all duration-300;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-card-hover hover:-translate-y-1;
            }
        }
    </style>

    <style>
        /* 平滑滚动 */
        html {
            scroll-behavior: smooth;
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .animate-fade-in {
            animation: fadeIn 0.5s ease-out forwards;
        }

        /* 功能卡片悬停效果 */
        .service-card {
            transition: all 0.3s ease;
        }

        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(22, 93, 255, 0.15);
        }
    </style>
</head>
<body class="font-inter bg-neutral min-h-screen">
<!-- 左上角返回按钮 -->

<!-- 导航栏 -->
<header class="bg-white shadow-sm sticky top-0 z-50">
    <div class="container mx-auto px-4 py-3 flex items-center justify-between">
        <a href="index.html" class="text-primary font-bold text-xl flex items-center">
            <i class="fa fa-university mr-2"></i>
            <span>返回</span>
        </a>

        <!-- 桌面导航 -->
        <nav class="hidden md:flex space-x-6">
            <a href="index.html" class="text-primary font-medium">首页</a>
            <a href="services.html" class="text-neutral-dark hover:text-primary transition-colors">服务项目</a>
            <a href="resources.html" class="text-neutral-dark hover:text-primary transition-colors">资源中心</a>
            <a href="stories.html" class="text-neutral-dark hover:text-primary transition-colors">成功故事</a>
            <a href="contact.html" class="text-neutral-dark hover:text-primary transition-colors">联系我们</a>
        </nav>

        <!-- 移动端菜单按钮 -->
        <button id="menuBtn" class="md:hidden text-neutral-dark text-xl">
            <i class="fa fa-bars"></i>
        </button>
    </div>

    <!-- 移动端导航菜单 -->
    <div id="mobileMenu" class="md:hidden hidden bg-white border-t border-neutral-light animate-fade-in">
        <div class="container mx-auto px-4 py-2 flex flex-col space-y-3">
            <a href="index.html" class="py-2 text-primary font-medium">首页</a>
            <a href="services.html" class="py-2 text-neutral-dark hover:text-primary transition-colors">服务项目</a>
            <a href="resources.html" class="py-2 text-neutral-dark hover:text-primary transition-colors">资源中心</a>
            <a href="stories.html" class="py-2 text-neutral-dark hover:text-primary transition-colors">成功故事</a>
            <a href="contact.html" class="py-2 text-neutral-dark hover:text-primary transition-colors">联系我们</a>
        </div>
    </div>
</header>

<!-- 页面内容 -->
<main class="container mx-auto px-4 py-8">
    <!-- 英雄区域 -->
    <section class="bg-gradient-to-r from-primary to-primary/80 rounded-2xl p-8 md:p-12 text-white mb-12 relative overflow-hidden">
        <!-- 装饰元素 -->
        <div class="absolute top-0 right-0 w-1/2 h-full opacity-10">
            <i class="fa fa-users text-[200px] absolute right-[-50px] top-[-50px]"></i>
        </div>

        <div class="max-w-2xl relative z-10">
            <h1 class="text-[clamp(1.8rem,5vw,3rem)] font-bold mb-6">赋能每一位残障人士，<br>提升生活品质</h1>
            <p class="text-lg mb-8 text-white/90">我们提供全方位的支持和服务，帮助残障人士发掘潜能，克服挑战，融入社会，享受平等的生活机会。</p>
            <div class="flex flex-wrap gap-4">
                <a href="#services" class="btn-primary bg-white text-primary font-medium px-6 py-3 rounded-lg hover:bg-white/90 transition-all duration-300">
                    探索服务
                </a>
                <a href="#contact" class="bg-white/20 backdrop-blur-sm border border-white/30 text-white font-medium px-6 py-3 rounded-lg hover:bg-white/30 transition-all duration-300">
                    联系我们
                </a>
            </div>
        </div>
    </section>

    <!-- 功能服务模块 -->
    <!-- 功能服务模块 -->
    <section id="services" class="mb-12">
        <div class="text-center mb-8">
            <h2 class="text-[clamp(1.3rem,3vw,2rem)] font-bold text-neutral-dark mb-3">全方位支持服务</h2>
            <p class="text-gray-600 max-w-2xl mx-auto text-sm md:text-base">我们提供多样化的服务，帮助残障人士提升生活自理能力，增强社会参与度，提高生活质量。</p>
        </div>

        <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"> <!-- 减小间距 -->
            <!-- 功能卡片1：言语认知训练 -->
            <div class="bg-white rounded-xl shadow-card p-3 md:p-4 service-card"> <!-- 减小内边距 -->
                <div class="w-8 h-8 md:w-10 md:h-10 bg-primary/10 rounded-lg flex items-center justify-center mb-2 md:mb-3"> <!-- 减小图标容器 -->
                    <i class="fa fa-comments text-primary text-sm md:text-xl"></i> <!-- 减小图标大小 -->
                </div>
                <h3 class="text-sm md:text-base font-semibold text-neutral-dark mb-2">言语认知训练</h3> <!-- 减小标题大小 -->
                <p class="text-xs md:text-sm text-gray-600 mb-3 line-clamp-2">提供专业训练，帮助听力、语言障碍者提升沟通和理解能力。</p> <!-- 减小文本大小并限制行数 -->
                <a href="#" class="text-primary font-medium hover:text-primary/80 flex items-center text-xs md:text-sm"> <!-- 减小链接文本 -->
                    了解详情 <i class="fa fa-arrow-right ml-1"></i>
                </a>
            </div>

            <!-- 功能卡片2：无障碍生活辅助 -->
            <div class="bg-white rounded-xl shadow-card p-3 md:p-4 service-card">
                <div class="w-8 h-8 md:w-10 md:h-10 bg-secondary/10 rounded-lg flex items-center justify-center mb-2 md:mb-3">
                    <i class="fa fa-home text-secondary text-sm md:text-xl"></i>
                </div>
                <h3 class="text-sm md:text-base font-semibold text-neutral-dark mb-2">无障碍生活辅助</h3>
                <p class="text-xs md:text-sm text-gray-600 mb-3 line-clamp-2">提供家庭改造方案和辅助设备，帮助残障人士实现生活自理。</p>
                <a href="#" class="text-primary font-medium hover:text-primary/80 flex items-center text-xs md:text-sm">
                    了解详情 <i class="fa fa-arrow-right ml-1"></i>
                </a>
            </div>

            <!-- 功能卡片3：心理辅导服务 -->
            <div class="bg-white rounded-xl shadow-card p-3 md:p-4 service-card">
                <div class="w-8 h-8 md:w-10 md:h-10 bg-accent/10 rounded-lg flex items-center justify-center mb-2 md:mb-3">
                    <i class="fa fa-heart text-accent text-sm md:text-xl"></i>
                </div>
                <h3 class="text-sm md:text-base font-semibold text-neutral-dark mb-2">心理辅导服务</h3>
                <p class="text-xs md:text-sm text-gray-600 mb-3 line-clamp-2">提供心理咨询和辅导，帮助残障人士建立积极心态，应对生活挑战。</p>
                <a href="#" class="text-primary font-medium hover:text-primary/80 flex items-center text-xs md:text-sm">
                    了解详情 <i class="fa fa-arrow-right ml-1"></i>
                </a>
            </div>

            <!-- 功能卡片4：无障碍技术支持 -->
            <div class="bg-white rounded-xl shadow-card p-3 md:p-4 service-card">
                <div class="w-8 h-8 md:w-10 md:h-10 bg-purple-100 rounded-lg flex items-center justify-center mb-2 md:mb-3">
                    <i class="fa fa-laptop text-purple-600 text-sm md:text-xl"></i>
                </div>
                <h3 class="text-sm md:text-base font-semibold text-neutral-dark mb-2">无障碍技术支持</h3>
                <p class="text-xs md:text-sm text-gray-600 mb-3 line-clamp-2">提供辅助技术和设备，帮助残障人士克服技术使用障碍。</p>
                <a href="#" class="text-primary font-medium hover:text-primary/80 flex items-center text-xs md:text-sm">
                    了解详情 <i class="fa fa-arrow-right ml-1"></i>
                </a>
            </div>

            <!-- 功能卡片5：社交与娱乐活动 -->
            <div class="bg-white rounded-xl shadow-card p-3 md:p-4 service-card">
                <div class="w-8 h-8 md:w-10 md:h-10 bg-emerald-100 rounded-lg flex items-center justify-center mb-2 md:mb-3">
                    <i class="fa fa-users text-emerald-600 text-sm md:text-xl"></i>
                </div>
                <h3 class="text-sm md:text-base font-semibold text-neutral-dark mb-2">社交与娱乐活动</h3>
                <p class="text-xs md:text-sm text-gray-600 mb-3 line-clamp-2">组织各类活动，帮助残障人士扩展社交圈子，丰富精神生活。</p>
                <a href="#" class="text-primary font-medium hover:text-primary/80 flex items-center text-xs md:text-sm">
                    了解详情 <i class="fa fa-arrow-right ml-1"></i>
                </a>
            </div>

            <!-- 功能卡片6：教育资源与培训 -->
            <div class="bg-white rounded-xl shadow-card p-3 md:p-4 service-card">
                <div class="w-8 h-8 md:w-10 md:h-10 bg-blue-100 rounded-lg flex items-center justify-center mb-2 md:mb-3">
                    <i class="fa fa-book text-blue-600 text-sm md:text-xl"></i>
                </div>
                <h3 class="text-sm md:text-base font-semibold text-neutral-dark mb-2">教育资源与培训</h3>
                <p class="text-xs md:text-sm text-gray-600 mb-3 line-clamp-2">提供多样化教育资源和培训课程，帮助残障人士提升发展潜力。</p>
                <a href="#" class="text-primary font-medium hover:text-primary/80 flex items-center text-xs md:text-sm">
                    了解详情 <i class="fa fa-arrow-right ml-1"></i>
                </a>
            </div>
        </div>
    </section>

    <!-- 成功故事 -->
    <section class="bg-neutral-light/50 rounded-2xl p-8 md:p-12 mb-16">
        <div class="text-center mb-10">
            <h2 class="text-[clamp(1.5rem,3vw,2.2rem)] font-bold text-neutral-dark mb-4">成功故事</h2>
            <p class="text-gray-600 max-w-2xl mx-auto">这些是通过我们的服务获得帮助的真实案例，他们的故事激励着更多残障人士克服困难，追求美好生活。</p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
            <!-- 故事1 -->
            <div class="bg-white rounded-xl shadow-card overflow-hidden">
                <img src="https://picsum.photos/seed/person1/600/400" alt="成功案例" class="w-full h-48 object-cover">
                <div class="p-6">
                    <h3 class="text-xl font-semibold text-neutral-dark mb-2">李明 - 重新找回沟通能力</h3>
                    <p class="text-gray-600 mb-4">听力障碍的李明通过我们的言语认知训练，不仅恢复了基本的沟通能力，还学会了使用手语与他人交流，重新建立了社交圈子。</p>
                    <div class="flex items-center">
                        <span class="bg-primary/10 text-primary px-3 py-1 rounded-full text-sm">
                            言语认知训练
                        </span>
                    </div>
                </div>
            </div>

            <!-- 故事2 -->
            <div class="bg-white rounded-xl shadow-card overflow-hidden">
                <img src="https://picsum.photos/seed/person2/600/400" alt="成功案例" class="w-full h-48 object-cover">
                <div class="p-6">
                    <h3 class="text-xl font-semibold text-neutral-dark mb-2">王芳 - 独立生活的开始</h3>
                    <p class="text-gray-600 mb-4">肢体障碍的王芳在接受家庭无障碍改造和生活技能培训后，终于能够独立完成日常生活活动，实现了多年来的独立生活梦想。</p>
                    <div class="flex items-center">
                        <span class="bg-secondary/10 text-secondary px-3 py-1 rounded-full text-sm">
                            无障碍生活辅助
                        </span>
                    </div>
                </div>
            </div>

            <!-- 故事3 -->
            <div class="bg-white rounded-xl shadow-card overflow-hidden">
                <img src="https://picsum.photos/seed/person3/600/400" alt="成功案例" class="w-full h-48 object-cover">
                <div class="p-6">
                    <h3 class="text-xl font-semibold text-neutral-dark mb-2">张伟 - 数字世界的探索者</h3>
                    <p class="text-gray-600 mb-4">视力障碍的张伟通过我们的无障碍技术培训，学会了使用屏幕阅读器和辅助工具，不仅能够独立上网，还开始学习编程，开拓了新的人生道路。</p>
                    <div class="flex items-center">
                        <span class="bg-accent/10 text-accent px-3 py-1 rounded-full text-sm">
                            无障碍技术支持
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 联系我们 -->
    <section id="contact" class="bg-white rounded-2xl shadow-card p-8 md:p-12 mb-16">
        <div class="grid grid-cols-1 md:grid-cols-2 gap-8 items-center">
            <div>
                <h2 class="text-2xl font-bold text-neutral-dark mb-4">联系我们</h2>
                <p class="text-gray-600 mb-6">如果您对我们的服务有任何疑问，或需要进一步了解相关信息，请随时与我们联系。</p>

                <div class="space-y-4 mb-6">
                    <div class="flex items-start">
                        <div class="w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center mr-4">
                            <i class="fa fa-phone text-primary"></i>
                        </div>
                        <div>
                            <h4 class="font-medium text-neutral-dark mb-1">咨询热线</h4>
                            <p class="text-gray-600">400-123-4567</p>
                        </div>
                    </div>

                    <div class="flex items-start">
                        <div class="w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center mr-4">
                            <i class="fa fa-envelope text-primary"></i>
                        </div>
                        <div>
                            <h4 class="font-medium text-neutral-dark mb-1">邮箱</h4>
                            <p class="text-gray-600">service@disability-service.com</p>
                        </div>
                    </div>

                    <div class="flex items-start">
                        <div class="w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center mr-4">
                            <i class="fa fa-map-marker text-primary"></i>
                        </div>
                        <div>
                            <h4 class="font-medium text-neutral-dark mb-1">地址</h4>
                            <p class="text-gray-600">北京市朝阳区残疾人服务中心</p>
                        </div>
                    </div>
                </div>

                <div class="flex space-x-4">
                    <a href="#" class="w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
                        <i class="fa fa-weixin"></i>
                    </a>
                    <a href="#" class="w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
                        <i class="fa fa-weibo"></i>
                    </a>
                    <a href="#" class="w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-colors">
                        <i class="fa fa-qq"></i>
                    </a>
                </div>
            </div>

            <div class="bg-neutral-light/50 rounded-xl p-6 md:p-8">
                <h3 class="text-xl font-semibold text-neutral-dark mb-4">预约咨询</h3>
                <form>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                        <div>
                            <label class="block text-sm font-medium mb-1 text-gray-700">姓名</label>
                            <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors" placeholder="请输入您的姓名">
                        </div>
                        <div>
                            <label class="block text-sm font-medium mb-1 text-gray-700">联系电话</label>
                            <input type="tel" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors" placeholder="请输入您的联系电话">
                        </div>
                    </div>

                    <div class="mb-4">
                        <label class="block text-sm font-medium mb-1 text-gray-700">电子邮箱</label>
                        <input type="email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors" placeholder="请输入您的电子邮箱">
                    </div>

                    <div class="mb-4">
                        <label class="block text-sm font-medium mb-1 text-gray-700">咨询内容</label>
                        <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors">
                            <option value="">请选择咨询内容</option>
                            <option value="training">言语认知训练</option>
                            <option value="accessibility">无障碍生活辅助</option>
                            <option value="counseling">心理辅导服务</option>
                            <option value="technology">无障碍技术支持</option>
                            <option value="activity">社交与娱乐活动</option>
                            <option value="education">教育资源与培训</option>
                            <option value="other">其他问题</option>
                        </select>
                    </div>

                    <div class="mb-6">
                        <label class="block text-sm font-medium mb-1 text-gray-700">详细描述</label>
                        <textarea rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors" placeholder="请详细描述您的需求或问题"></textarea>
                    </div>

                    <button type="submit" class="w-full btn-primary">
                        提交预约
                    </button>
                </form>
            </div>
        </div>
    </section>
</main>

<!-- 页脚 -->
<footer class="bg-neutral-dark text-white py-10">
    <div class="container mx-auto px-4">
        <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
            <div>
                <h3 class="text-lg font-semibold mb-4">关于我们</h3>
                <p class="text-gray-400 mb-4">我们致力于为残疾人提供全方位的支持和服务，帮助他们提升生活质量，实现个人价值。</p>
            </div>

            <div>
                <h3 class="text-lg font-semibold mb-4">服务项目</h3>
                <ul class="space-y-2">
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">言语认知训练</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">无障碍生活辅助</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">心理辅导服务</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">无障碍技术支持</a></li>
                    <li><a href="#" class="text-gray-400 hover:text-white transition-colors">社交与娱乐活动</a></li>
                </ul>
            </div>

            <div>
                <h3 class="text-lg font-semibold mb-4">联系我们</h3>
                <ul class="space-y-2">
                    <li class="flex items-center">
                        <i class="fa fa-phone mr-2 text-gray-400"></i>
                        <span class="text-gray-400">400-123-4567</span>
                    </li>
                    <li class="flex items-center">
                        <i class="fa fa-envelope mr-2 text-gray-400"></i>
                        <span class="text-gray-400">service@disability-service.com</span>
                    </li>
                </ul>
            </div>
        </div>

        <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400 text-sm">
            <p>© 2025 残疾人服务中心 版权所有</p>
        </div>
    </div>
</footer>

<!-- JavaScript -->
<script>
    // 移动端菜单切换
    document.getElementById('menuBtn').addEventListener('click', function() {
        const mobileMenu = document.getElementById('mobileMenu');
        mobileMenu.classList.toggle('hidden');
    });

    // 平滑滚动到锚点
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function (e) {
            e.preventDefault();

            const targetId = this.getAttribute('href');
            if (targetId === '#') return;

            const targetElement = document.querySelector(targetId);
            if (targetElement) {
                // 关闭移动菜单（如果打开）
                document.getElementById('mobileMenu').classList.add('hidden');

                // 滚动到目标位置
                window.scrollTo({
                    top: targetElement.offsetTop - 80, // 减去导航栏高度
                    behavior: 'smooth'
                });
            }
        });
    });

    // 滚动时添加动画效果
    const observer = new IntersectionObserver((entries) => {
        entries.forEach(entry => {
            if (entry.isIntersecting) {
                entry.target.classList.add('animate-fade-in');
                observer.unobserve(entry.target);
            }
        });
    }, { threshold: 0.1 });

    document.querySelectorAll('.service-card').forEach(card => {
        observer.observe(card);
    });
</script>
</body>
</html>
